<template>
  <el-config-provider :locale="locale">
    <Layout></Layout>
  </el-config-provider>
</template>
<script lang="ts" setup>
import Layout from './Layout/index.vue'
import useLocale from '@/hooks/UseLocale'
import { computed } from 'vue'
import { languageList } from '@/config'
const {
  currentLocale, //当前国际化
} = useLocale()
const locale = computed(() => {
  return languageList.find((item) => item.value === currentLocale.value)?.element
})
</script>
<style lang="scss">
@import './styles/sass/index.scss';
</style>
